<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="text" id="id">\

    <script>
        let inputEle = document.querySelector('#id');
        console.log(Object.prototype.toString.call(inputEle));
        HTMLInputElement.prototype.sayHi = function() {
            console.log('hi this is function');
        }

        inputEle.sayHi();

        Reflect.set(inputEle,'value','daxia'); // 将一个对象的 set 方法反射出来

        inputEle.addEventListener('input',function() {
            console.log(this.value);
        })
    </script>
</body>
</html>